<form class="layui-form">
  <input type="hidden" name="id" value="<{$info['id']}>" />
  <div class="layui-form-item">
    <label class="layui-form-label">公告标题</label>
    <div class="layui-input-block">
      <input type="text" name="title" lay-verify="required" placeholder="请输入名称" autocomplete="off" class="layui-input" value="<{$info['title']}>">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">缩略图</label>
    <div class="layui-input-block">
      <input type="hidden" name="pic" value="<{$info['pic']}>" />
      <button type="button" class="layui-btn layui-btn-default mypic">上传图片</button>
      <div id="pic"><{if $info['pic'] }><div style="width:100px;float:left;"><i onclick="close_pic(this)" class="layui-icon layui-unselect layui-tab-close" style="float:right;cursor:pointer;">ဆ</i><br><img width="100" src="<{$info['pic']}>" style="margin-right:10px;"></div><{/if}></div>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">文章内容</label>
    <div class="layui-input-block">
      <textarea name="content" id="layui_textarea_index" lay-verify="content" placeholder="请输入文章内容" class="layui-textarea"><{$info['content']}></textarea>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">开关</label>
    <div class="layui-input-block">
        <select name="status">
            <{volist name="status" id="v"}>
          <option value="<{$key}>" <{if $key==$info['status']}>selected<{/if}>><{$v}></option>
            <{/volist}>
        </select>
    </div>
  </div>
  <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit="" lay-filter="form">立即提交</button>
    </div>
  </div>
</form>

<script>
$().ready(function(){
  layui.form.render('select');
});
</script>
